package week9;

public class Car extends Vehicle implements IPower{
    private String carNumber;
    public Car(String brand, String color, String carNumber)
    {
        super(brand, color);
        this.carNumber = carNumber;
    }
    public String getCarNumber()
    {
        return carNumber;
    }
    public void setCarNumber(String carNumber)
    {
        this.carNumber = carNumber;
    }


    public void power() {
        System.out.println("Car is running");
    }
        public void run() {
        System.out.println("Car is running");
        }

    }